package com.akuhome.resource.DO.message;

import javax.validation.constraints.NotBlank;
import java.sql.Timestamp;

public class MessageTemplate {
    Integer id;
    @NotBlank(message = "名称不能为空")
    String name;
    @NotBlank(message = "内容不能为空")
    String content;
    Timestamp createTime;
    Timestamp updateTime;

    public MessageTemplate() {
    }

    public MessageTemplate(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }
}
